#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/>
#
# Foods N' Roses webapp URL mappings.
#
# Created on 2008-08-15.
# $Id$
#

from django.conf.urls.defaults import patterns

urlpatterns = patterns('buggarden.hottywood.views',

    # Common views (excluding not_found, which is the last mapping).
    (r'^error/$', 'error'),
    (r'^doc/(?P<path>.+)/$', 'document'),
    # (r'^lang/$', 'change_language'),
    
    (r'^$', 'home'),
    (r'^add_movie/$', 'add_movie'),
    (r'^movies/$', 'hottest_movies'),
    (r'^movies/(?P<abc>[0a-z_]|all)/$', 'movies'),
    (r'^movie/(?P<id>\d+)/$', 'movie'),
    (r'^movie/(?P<id>\d+)/poster/$', 'movie_poster'),
    (r'^movie/(?P<movie_id>\d+)/(?P<scene_id>\d+)/$', 'scene'),
    (r'^actor/(?P<id>\d+)/$', 'actor'),
    (r'^user/(?P<id>\d+)/$', 'user_profile'),
    (r'^user/(?P<id>\d+)/photo/$', 'user_photo'),
    (r'^my_profile/$', 'my_profile'),
    
    # Cron tasks.
    (r'^cron/update_hottest/$', 'cron_update_hottest'),
    
    # 404 not found.
    (r'^.*/$', 'not_found'),  # This must be the last mapping.
)



